{% extends 'core/project_bar_base.html' %}
{% load projects_tags %}
{% load i18n %}

{% block project-breadcrumb %}
  {% if request.user|is_project_user:project %}
    <a href="{% url "projects_dashboard" %}">{% trans "Projects" %}</a>&nbsp;&gt;
  {% endif %}
  {% if project.superprojects.exists %}
    {% with main_project=project.superprojects.all.0.parent %}
    <a href="{% url "projects_detail" main_project.slug %}">{{ main_project.name }}</a>&nbsp;&gt;
    {% endwith %}
  {% endif %}
{% endblock %}
